const Mock = require('mockjs')
const fs = require('fs')

const data = Mock.mock({
    'list|2': [
        {
            'title': '@ctitle(4)',
            'children|6': [
                {
                    'img': '@image(150x280, @color)',
                    'name': '@ctitle(4,5)',
                    'time': '@time("H:m")',
                    'language': '英语3D',
                    'num|1-10': 1,
                    'price|30-100': 1,
                    'yupiao|10-100': 1  
                }
            ]
        }
    ]
})

fs.writeFileSync('./data.json', JSON.stringify(data.list))